package cn.wolfcode.luowowo.article.util;


import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;

@Setter@Getter
public class TravelCondition {

    //天数
    public static final HashMap<Integer,TravelCondition>dayMap = new HashMap<>();
    //花费
    public static final HashMap<Integer,TravelCondition>moneyMap = new HashMap<>();
    //出发月份
    public static final HashMap<Integer,TravelCondition>monthMap = new HashMap<>();



    static {
        //出行天数
        dayMap.put(-1,null);
        dayMap.put(1,new TravelCondition(0,3));
        dayMap.put(2,new TravelCondition(4,7));
        dayMap.put(3,new TravelCondition(8,14));
        dayMap.put(4,new TravelCondition(15, Integer.MAX_VALUE));

        //人均花费
        moneyMap.put(-1,null);
        moneyMap.put(1,new TravelCondition(1,999));
        moneyMap.put(2,new TravelCondition(1000,6000));
        moneyMap.put(3,new TravelCondition(6001,20000));
        moneyMap.put(4,new TravelCondition(20001, Integer.MAX_VALUE));

        // 出发月份
        monthMap.put(-1,null);
        monthMap.put(1,new TravelCondition(1,2));
        monthMap.put(2,new TravelCondition(3,4));
        monthMap.put(3,new TravelCondition(5,6));
        monthMap.put(4,new TravelCondition(7, 8));
        monthMap.put(5,new TravelCondition(9, 10));
        monthMap.put(6,new TravelCondition(11, 12));

    }


    private int min;
    private int max;

    public TravelCondition(int min,int max){
        this.max=max;
        this.min=min;
    }

}
